package com.jyhz.author.service.client;//package com.jyhz.author.client;


import com.jyhz.common.dto.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.repository.query.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xjc
 * @create 2021-04-11 12:52
 */
@FeignClient("user")
public interface UserClient {

    @GetMapping("/user/get")
    HttpResult getUserByUsernameAndPassword(@RequestParam("username") String username,
                                            @RequestParam("password") String password);
}
